Quit Method
Quits the application.
Syntax
Quit [status]
Parameters | ||
status (Optional) |
For console applications only, optional parameter that returns a status code. When you call Quit, it will terminate your application and returns the status code in status. |
Notes
Calling the Quit method will call the Application class's CancelClose event. To cancel the close, return True from this event. If it does not return True, each window's CancelClose event handler will execute. CancelClose and Close are called as a pair for each open window.
If a CancelClose event handler returns False (the default action) then the window's Close event handler will be executed. If any window's CancelClose event handler returns True, REALbasic will stop sending CancelClose or Close events and the application will not quit.
Example
This example quits the application
.
See Also
Application, QuitMenuItem classes.